// import cTitle from "../components/title";
// import District from "ydui-district/dist/gov_province_city_area_id";
import { Toast } from "vant";
import diyfrom from "../components/diyform";

export default {
  data() {
    return {
      form_id:'',
      goodsId:'',
      optionsId:'',
      total:'',
      tag:'',
      extinfo: null,
      form_data_id:'',
      plugin:''
    };
  },

  mounted() {
    // let { id, goodsId, optionsId, total,form_data_id,plugin, ...extinfo } = this.$route.params;
    // this.form_id = id;
    // this.goodsId = goodsId;
    // this.optionsId = optionsId;
    // this.total = total;
    // this.extinfo = extinfo;

    // if (!this.form_id) {
    //   Toast("该表单不存在！");
    //   this.$router.push(this.fun.getUrl("member"));
    // }
    // if (this.$route.params.tag) {
    //   this.tag = this.$route.params.tag;
    // }
  },
  methods: {},
  activated() {
    let { id, goodsId, optionsId, total, ...extinfo } = this.$route.params;
    this.form_id = id;
    this.goodsId = goodsId;
    this.optionsId = optionsId;
    this.total = total;
    this.extinfo = extinfo;
    if (!this.form_id) {
      Toast("该表单不存在！");
      this.$router.push(this.fun.getUrl("member"));
    }
    if (this.$route.params.tag) {
      this.tag = this.$route.params.tag;
    }
  },
  created() {
  },
  components: { diyfrom }
};
